package org.ghost.consul.server.controller;

import org.ghost.consul.common.api.HomeServiceRemoteApi;
import org.ghost.consul.common.response.HttpRspDTO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by yarnliu on 2017-10-25.
 */
@RestController
public class HomeController implements HomeServiceRemoteApi {
    private static final Logger logger = LoggerFactory.getLogger(HomeController.class);

    @Override
    public HttpRspDTO hello() {
        return new HttpRspDTO(true, "hello world");
    }
}
